export const isBlank = (str) => {
    let length;
    if (str != null && (length = str.length) != 0) {
        for (let ch in str) {
            if (ch != ' ') {
                return false;
            }
        }
        return true;
    }
    return true;
}


export const isNotBlank = (str) => {
    return !isBlank(str);
}

export const equals = (str1, str2) => {
    if (str1 === null || str1 === undefined) {
        return str2 === null || str2 === undefined
    } else if (str2 === null || str2 === undefined) {
        return false;
    } else {
        return str1 === str2;
    }
}